Integrand size = 28, antiderivative size = 37 \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=-\frac {i (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n}{d n} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.036, Rules used = {3569} \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=-\frac {i (a+i a \tan (c+d x))^n (e \sec (c+d x))^{-n}}{d n} \]
[In]
[Out]
Rule 3569
Rubi steps \begin{align*} \text {integral}& = -\frac {i (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n}{d n} \\ \end{align*}
Time = 0.32 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00 \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=-\frac {i (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n}{d n} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 5.52 (sec) , antiderivative size = 842, normalized size of antiderivative = 22.76
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 84 vs. \(2 (33) = 66\).
Time = 0.24 (sec) , antiderivative size = 84, normalized size of antiderivative = 2.27 \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=-\frac {i \, e^{\left (i \, d n x + i \, c n + n \log \left (\frac {2 \, e e^{\left (i \, d x + i \, c\right )}}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}\right ) + n \log \left (\frac {a}{e}\right )\right )}}{d n \left (\frac {2 \, e e^{\left (i \, d x + i \, c\right )}}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}\right )^{n}} \]
[In]
[Out]
Time = 3.86 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.32 \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=\begin {cases} x & \text {for}\: d = 0 \wedge n = 0 \\x \left (e \sec {\left (c \right )}\right )^{- n} \left (i a \tan {\left (c \right )} + a\right )^{n} & \text {for}\: d = 0 \\x & \text {for}\: n = 0 \\- \frac {i \left (e \sec {\left (c + d x \right )}\right )^{- n} \left (i a \tan {\left (c + d x \right )} + a\right )^{n}}{d n} & \text {otherwise} \end {cases} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 86 vs. \(2 (33) = 66\).
Time = 0.33 (sec) , antiderivative size = 86, normalized size of antiderivative = 2.32 \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=-\frac {i \, a^{n} e^{\left (n \log \left (-\frac {2 i \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right ) - n \log \left (-\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right )\right )}}{d e^{n} n} \]
[In]
[Out]
\[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=\int { \frac {{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{n}}{\left (e \sec \left (d x + c\right )\right )^{n}} \,d x } \]
[In]
[Out]
Timed out. \[ \int (e \sec (c+d x))^{-n} (a+i a \tan (c+d x))^n \, dx=\int \frac {{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^n}{{\left (\frac {e}{\cos \left (c+d\,x\right )}\right )}^n} \,d x \]
[In]
[Out]